<?php echo $this->render("head.phtml");?>
<div class='container_24 div_content ui-corner-all'>
  <!-- bread crumbs -->
  <div class='grid_23 bread_crumbs'>
    <div class='left'>
      <a class='crumb' href='/'>首页</a>&nbsp;>>&nbsp;
<?php if ($this->cat){ ?><a class='crumb' href="/category/select?cat_id=<?php echo $this->cat['id'];?>"><?php echo $this->cat['name'];?></a><?php } ?>
<?php if ($this->user){ ?><a class='crumb ' href='/category/user-list'>用户排行榜</a>&nbsp;>>&nbsp;<a class='crumb' href="/courses/user-content-list?uid=<?php echo $this->user['id'];?>"><?php echo $this->user['username'];?></a><?php } ?>&nbsp;>>&nbsp;
      <a class='tag_crumb' href="/category/tag?cat_id=<?php echo $this->cat['id'];?>&tag_id=<?php echo $this->tag['id'];?>"><?php echo $this->tag['tag'];?></a>
    </div>
  </div>
  <div class='clear'></div>

<?php

foreach($this->paginator as $course)
{
?>
	<div class='search_item'>
	  <div class=' grid_3'>
	    <a href="/video/play?cont_id=<?php echo $course['cont_id'];?>">
	      <img class='search_item_img' src="<?php echo THUMBNAILS_PREFIX.$course['thumb'];?>"/>
	    </a>
	  </div>
	  <div class=' grid_4 title'><a class='a_course_title' href="/video/play?cont_id=<?php echo $course['cont_id'];?>"><?php echo $course['title'];?></a></div>
	  <div class=' grid_10 desc'><?php echo $course['descript'];?></div>
	  <div class=' grid_2 view'><?php echo $course['times'];?></div>
	  <div class='grid_2 big-text price ui-corner-all'><?php printf('￥%.2f', $course['promotion'] ? $course['dis_price'] : $course['ori_price']);?></div>
	  <div class='clear'></div>
	</div>
	<div class='clear'></div>
	<hr class='margin-10px' />
<?php }?>
<div class='clear'></div>
<?php echo  $this->paginationControl($this->paginator, 'Sliding', 'courses/pagelist.phtml');?>
</div>
<?php echo $this->render("foot.phtml");?>    
